import Vue from 'vue'
import Vuex from 'vuex'
import utils from '../utils'
import com from './modules/com.js'
import {coupon} from './modules/coupon.js'
import user from './modules/user.js'
import {center} from './modules/center.js'
import find from './modules/find.js'
import {info} from './modules/info.js'
import growth from './modules/growth.js'
import pay from './modules/pay.js'
import share from './modules/share.js'
import shop from './modules/shop.js'
import loading from './modules/loading.js'
import bindCard from './modules/bindCard.js'
import createLogger from 'vuex/dist/logger'

Vue.use(Vuex)

const debug = process.env.NODE_ENV !== 'production'
export default new Vuex.Store({
    modules:{
        bindCard,
        com,
        coupon,
        user,
        center,
        find,
        info,
        growth,
        pay,
        share,
        shop,
        loading
    },
  // strict: debug,
  // plugins: debug ? [createLogger()] : []
})
